<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<f:metadata>
	<f:viewAction action="#{professorBean.init}" onPostback="false" />
</f:metadata>
<h:head>
	<title></title>
</h:head>
<h:body>
	Profesor
	<h:form>
		<p:growl id="growl" showDetail="true" sticky="true" />

		<p:panel header="Growl">
			<h:panelGrid columns="2" cellpadding="5">
				<p:outputLabel for="msg" value="Message:" />
				<p:inputText id="msg" value="#{professorBean.message}" required="true" />
			</h:panelGrid>

			<p:commandButton value="Save"
				actionListener="#{professorBean.saveMessage}" update="growl" />
		</p:panel>
	</h:form>
</h:body>
</html>